package upload

import "time"

type FileUploadAndDownload struct {
	ID           uint      `json:"id" gorm:"column:ID"`
	Pubtime      time.Time `json:"pubtime" gorm:"column:PUBTIME"`
	DeviceNumber string    `json:"device_number" gorm:"column:DEVICE_NUMBER"`
	FileName     string    `json:"file_name" gorm:"column:FILE_NAME"`   // 文件名
	FilePath     string    `json:"file_path" gorm:"column:FILE_PATH"`   // 文件地址
	CreatedAt    time.Time `json:"created_at" gorm:"column:CREATED_AT"` // 备注
}

func (FileUploadAndDownload) TableName() string {
	return "NANSHAN_DB.KPR_AUDIOS"
}
